package chapter1.domain.entity;

import java.time.LocalDateTime;

/**
 * 实体类-用户
 *
 * @author 郑植航
 * @since 2025/4/16 21:42
 */
public class User extends BaseEntity{

    //用户名
    public String username;
    //真实姓名
    public String name;
    //电话
    public String mobile;
    //邮箱
    public String email;
    //所属部门
    public Integer deptId;
    //所属角色
    public Integer roleId;
    //状态：0-禁用，1-启用
    public boolean enable = true;
    public User() {
    }

    public User(Integer id, LocalDateTime createAt, LocalDateTime updateAt,
                String username, String name, String mobile, String email, Integer deptId, Integer roleId) {
        super(id, createAt, updateAt);
        this.username = username;
        this.name = name;
        this.mobile = mobile;
        this.email = email;
        this.deptId = deptId;
        this.roleId = roleId;
    }
}
